package cn.beatuty.makeup.module.system.controller.admin.hotproducts.vo;

import cn.beatuty.makeup.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import static cn.beatuty.makeup.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 热门商品分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class HotProductsPageReqVO extends PageParam {

    @Schema(description = "商品图片")
    private String image;

    @Schema(description = "商品介绍", example = "随便")
    private String description;

    @Schema(description = "商品成分")
    private String ingredients;

    @Schema(description = "使用方法")
    private String usageMethod;

    @Schema(description = "商品规格")
    private String specification;

    @Schema(description = "商品价格", example = "21257")
    private BigDecimal price;

    @Schema(description = "点赞数")
    private Integer likes;

    @Schema(description = "评论数")
    private Integer comments;

    @Schema(description = "收藏数")
    private Integer favorites;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;
    private String productsClassifyName;

    private String title;


    private String number;

    private String productsStatus;

    private Boolean isAllData = false;
    private Boolean isHot = false;
    private String sort;
}